package com.yong.sbd.common.beans.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 通用响应枚举
 *
 * @author Kang Yong
 * @date 2025/10/22
 * @since 1.0.0
 */
@Getter
@AllArgsConstructor
public enum RcEnum {
    SUCCESS(3001, "操作成功"),
    FAIL(3002, "操作失败"),
    NO_RESOURCE(3003, "操作失败"),
    NO_LOGIN(3004, "操作失败"),
    NO_PERMISSION(3005, "没有权限"),
    TOKEN_REFRESH(3006, "token刷新"),
    PARAM_ERROR(3007, "参数校验错误"),
    SAVE_SUCCESS(3008, "新增成功"),
    SAVE_FAIL(3009, "新增失败"),
    UPDATE_SUCCESS(3010, "编辑成功"),
    UPDATE_FAIL(3011, "编辑成功"),
    DELETE_SUCCESS(3012, "删除成功"),
    DELETE_FAIL(3013, "删除失败"),
    PUBLIS_SUCCESS(3014, "发布成功"),
    PUBLIS_FAIL(3015, "发布失败"),
    UPLOAD_SUCCESS(3016, "上传成功"),
    UPLOAD_FAIL(3017, "上传失败"),
    DOWN_SUCCESS(3018, "下载成功"),
    DOWN_FAIL(3019, "下载失败"),
    IMPORT_SUCCESS(3020, "导入成功"),
    IMPORT_FAIL(3021, "导入失败"),
    EXPORT_SUCCESS(3022, "导出成功"),
    EXPORT_FAIL(3023, "导出失败"),
    LOGIN_OVER_TIME(3024, "登陆超时，请重新登陆"),
    ;

    public final Integer code;
    public final String msg;

}
